//
//  WYWholeCountryCell.m
//  Boss
//
//  Created by admin on 2018/8/13.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "WYWholeCountryCell.h"

@implementation WYWholeCountryCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)buttonAction:(UIButton *)sender {
    WYUserMessage *userMessage = [WYStoreModule currentUserMessage];
    if (userMessage.vipId.integerValue == 30) {
        sender.selected = !sender.isSelected;
        if ([self.delegate respondsToSelector:@selector(didSelectChageWholeCountryButtonWithCell:WithBtnState:)]) {
            [self.delegate didSelectChageWholeCountryButtonWithCell:self WithBtnState:sender.selected];
        }
    }else{
        if ([self.delegate respondsToSelector:@selector(diamondsShowToast)]) {
            [self.delegate diamondsShowToast];
        }
    }
    
    
   
    
}








@end
